package cn.flashapp.queue;

import javax.servlet.ServletContextEvent;

import com.koolearn.rest.ConfigInitializer;
import com.koolearn.util.SystemGlobals;
import com.koolearn.utils.text.StringUtils;

public class AppInitializer extends ConfigInitializer {

	public void contextInitialized(ServletContextEvent event) {
		super.contextInitialized(event);
		
		if (!StringUtils.isEmptyString(SystemGlobals.getPreference("jredis.configfile.filename")))
			System.setProperty("jredis.configfile.filename", SystemGlobals.getPreference("jredis.configfile.filename"));
		
		System.out.println(SystemGlobals.getPreference("jredis.configfile.filename"));
	}

	public void contextDestroyed(ServletContextEvent event) {
		super.contextDestroyed(event);
	}

}